package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * <p>
 * 反馈表
 * </p>
 *
 * @author wangchang
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_feedback")
@ApiModel(value="Feedback对象", description="反馈表")
public class Feedback implements Serializable {

    private static final long serialVersionUID=1L;

    @Id
    @ApiModelProperty(value = "唯一uid")
    private String uid;

    @ApiModelProperty(value = "用户uid")
    private String userUid;

    @ApiModelProperty(value = "反馈的内容")
    private String content;

    @ApiModelProperty(value = "状态")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "反馈状态： 0：已开启  1：进行中  2：已完成  3：已拒绝")
    private Integer feedbackStatus;

    @ApiModelProperty(value = "回复")
    private String reply;

    @ApiModelProperty(value = "管理员uid")
    private String adminUid;

    // 以下字段不存入数据库,封装为了前端使用
    @Transient
    private User user;//反馈用户
}
